package com.minivision.sdktestdemo.ui.custom;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2016/7/31.
 */
public interface LrcService {
    String BASE_URL = "http://apis.baidu.com/geekery/music/";

    @GET("krc")
    Call<LrcResponse> getLrc(@Header("apikey") String head, @Query("name") String name, @Query("hash") String hash, @Query("time") int time);

    @GET("query")
    Call<MusicResponse> getMusicInfo(@Header("apikey") String head, @Query("s") String key, @Query("size") int pageSize, @Query("page") int page);

    @GET("singer")
    Call<ResponseBody> getSingerInfo(@Query("name") String name);

    @GET("playinfo")
    Call<ResponseBody> getMusicUrl(@Query("hash") String hash);
}
